<template>
  <div ref="modal">
    <Dialog :visible.sync="isShow" :title="title">
      <slot name="body"></slot>
    </Dialog>
  </div>
</template>
<script>
import { Dialog } from "element-ui";
export default {
  name: "Popup",
  props: {
    // 标题
    title: {
      type: String,
      default: "title"
    },
    // 状态
    isShow: {
      type: Boolean,
      default: false
    },
    // 关联的组件名
    componentName: {
      type: String,
      default: "UserDetail"
    }
  },
  data() {
    return {};
  },
  created() {},
  computed: {},
  methods: {},
  components: { Dialog }
};
</script>
